from flask import Flask
from api.login_flask import app_login
from api.access_token_notify import app_access_token_verify
from api.call_car_flask import app_callCar
from api.phone_notify import app_phone_notify
from api.phone_verify import app_phone_verify
from api.set_password import app_set_password
from api.get_phone import app_get_phone
from api.history import app_history
from api.order import app_order
from api.order_detail import app_order_detail
from api.dirver import app_dirver
from api.process_order import app_process_order
from api.process_order_user import app_process_order_user
from api.last_order import app_last_order_id
from api.add_dirver import app_add_dirver

app = Flask(__name__)

app.register_blueprint(app_login)
app.register_blueprint(app_access_token_verify)
app.register_blueprint(app_callCar)
app.register_blueprint(app_phone_notify)
app.register_blueprint(app_phone_verify)
app.register_blueprint(app_set_password)
app.register_blueprint(app_get_phone)
app.register_blueprint(app_history)
app.register_blueprint(app_order)
app.register_blueprint(app_order_detail)
app.register_blueprint(app_dirver)
app.register_blueprint(app_process_order)
app.register_blueprint(app_process_order_user)
app.register_blueprint(app_last_order_id)
app.register_blueprint(app_add_dirver)

if __name__ == '__main__':
    app.run(debug=True, host="0.0.0.0")
    